/**
 * Created by aesop on 2015/7/2.
 */

var mysql = require("mysql");

module.exports = function(config){
  var pool = mysql.createPool({
    connectionLimit : 10,
    host            : config.host,
    user            : config.user,
    password        : config.password
  });
  return pool;
}